package what.the.fun.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import what.the.fun.dao.AnswerDAO;
import what.the.fun.domain.Answer;

public class AnswerServiceImpl implements AnswerService{

	@Autowired
	AnswerDAO answerDAO;
	
	@Override
	public List<Answer> getDataList() {
		return answerDAO.getDataList();
	}

	@Override
	public void insertData(Answer data) {
		answerDAO.insertData(data);
	}

	@Override
	public void updateData(Answer data) {
		answerDAO.updateData(data);
	}

	@Override
	public void deleteData(String id) {
		answerDAO.deleteData(id);
	}

	@Override
	public Answer getData(String id) {
		return answerDAO.getData(id);
	}

	@Override
	public List<Answer> getAnswerListByQuestId(String questId) {
		return answerDAO.getAnswerListByQuestId(questId);
	}

}
